<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="header.jsp"%>
<%@ page import="MyServlet.User2"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
	<div id="myDiv2">
	
		<c:if test="${!empty userList }">
			<c:forEach items="${userList}" var="user">
				<div style="padding: 2em 6em;">
				<form action="/Assignment3/updateUser/${user.id}"  method="POST">
					<table>
					<tr>
						<td><a href="/Assignment3/deleteUser/${user.id}"><button> Delete </a></button> </td>
						<td>
							<table>
							<tr><td>Name: ${user.name}</td></tr>
							<tr><td>Password: ${user.password}</td></tr>
							<tr><td>Type: ${user.type}</td></tr>
						
							</table>
						</td>
						<td><img src="../images/user.jpg" height="150" width="250"></td>
						<td>
							<table>
							<tr><td>Name:</td><td><input class="inputtext" type="text" name="name"/></td></tr>
							<tr><td>Password:</td><td>  <input class="inputtext" type="text" name="password"/></td></tr>
							<tr><td>Type:</td><td>   <input class="inputtext" type="text" name="type"/></td></tr>
						
							</table>
							
						</td>
						<td><input type="submit" tabindex="4" value="Update"/></td>
					</tr>
					</table>
					</form>
				</div>
			</c:forEach>
		</c:if>
		</div>
</body>
</html>